home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1997 April / EnigmA AMIGA RUN 17 (1997)(G.R. Edizioni)(IT)[!][issue 1997-04][EAR-CD].iso / EARCD / text / edit / envcpp11.lha / envCPP11 / Install < prev    next >
Text File  |  1996-11-19  |  4KB  |  167 lines

  1. ; $VER: 1.0 All rights reserved.
  2.  
  3. (delopts "oknodelete" "force" "askuser")
  4. (complete 0)
  5.  
  6. (if (exists "GOLDED:" (NOREQ))
  7.  
  8.     (
  9.         (set vernum (getversion "golded:golded"))
  10.  
  11.         (set ver (/ vernum 65536))
  12.         (set rev (- vernum (* ver 65536)))
  13.  
  14.         (set version (+ (* 10 ver) rev))
  15.  
  16.         (if (< version 40)
  17.  
  18.             (
  19.                 (message "\nSorry, GoldED 4.0.0 or better required")
  20.  
  21.                 (exit (quiet))
  22.             )
  23.         )
  24.  
  25.         (message (cat "\n"
  26.  
  27.             "                                            \n"
  28.             "C++ mode for GoldED 4 (for Dice and SAS/C)  \n"
  29.             "                                            \n"
  30.             "©1996 Dietmar Eilert                        \n"
  31.             "      All Rights Reserved.                  \n"
  32.             "                                            \n"
  33.             "      E-Mail: dietmar@tomate.tng.oche.de    \n"
  34.             "                                            \n"
  35.             "GoldED Release 4.0.0+ required.             \n"
  36.         ))
  37.  
  38.         (copylib
  39.  
  40.             (prompt "Install API client ?")
  41.             (source "api/mirror.api")
  42.             (dest   "golded:api")
  43.             (confirm)
  44.             (help @copylib-help)
  45.         )
  46.  
  47.         (copylib
  48.  
  49.             (prompt "Install syntax parser ?")
  50.             (source "syntax/warpC++.parser")
  51.             (dest   "golded:syntax")
  52.             (confirm)
  53.             (help @copylib-help)
  54.         )
  55.  
  56.         ; install registry editor (if not yet installed)
  57.  
  58.         (if (not (exists "golded:tools"))
  59.  
  60.             (makedir "golded:tools")
  61.         )
  62.  
  63.         (if (not (exists "golded:tools/regedit"))
  64.  
  65.             (makedir "golded:tools/regedit")
  66.         )
  67.  
  68.         (copylib
  69.  
  70.             (prompt "Install registry editor ?")
  71.             (source "bin/regedit" )
  72.             (dest   "golded:tools/regedit")
  73.             (confirm)
  74.             (help @copylib-help)
  75.         )
  76.  
  77.         ; install toolbar images
  78.  
  79.         (if (exists "toolbar") (
  80.  
  81.             (set hicolor
  82.  
  83.                 (askchoice
  84.  
  85.                     (prompt "\nSelect toolbar style:\n")
  86.  
  87.                     (choices
  88.  
  89.                         "4  colors"
  90.                         "8+ colors"
  91.                     )
  92.  
  93.                     (default 1)
  94.  
  95.                     (help (cat "\n"
  96.  
  97.                         " You can use both styles on all screens. The 4\n"
  98.                         " color style has been optimized for 4-color   \n"
  99.                         " screens. The 8+ style has been optimized for \n"
  100.                         " screens with eight or more colors.           \n"
  101.                     ))
  102.                 )
  103.             )
  104.  
  105.             (if (not (exists "golded:toolbar"))
  106.  
  107.                 (makedir "golded:toolbar")
  108.             )
  109.  
  110.             (if (not (exists "golded:toolbar/standard"))
  111.  
  112.                 (makedir "golded:toolbar/standard")
  113.             )
  114.  
  115.             (copyfiles
  116.  
  117.                 (source "toolbar")
  118.                 (dest   "golded:toolbar")
  119.                 (nogauge)
  120.                 (all)
  121.             )
  122.  
  123.             (if (= hicolor 1)
  124.  
  125.                 (copyfiles
  126.  
  127.                     (source "toolbar16")
  128.                     (dest   "golded:toolbar")
  129.                     (nogauge)
  130.                     (all)
  131.                 )
  132.             )
  133.         ))
  134.  
  135.         ; install macros
  136.  
  137.         (if (not (exists "golded:arexx"))
  138.  
  139.             (makedir "golded:arexx")
  140.         )
  141.  
  142.         (copyfiles
  143.  
  144.             (source "arexx")
  145.             (dest   "golded:arexx")
  146.             (nogauge)
  147.             (all)
  148.         )
  149.  
  150.         ; update registry
  151.  
  152.         (working "Updating registry...")
  153.  
  154.         (run "golded:tools/regedit/regedit script=install.bat")
  155.     )
  156.  
  157.     (message (cat "\n"
  158.  
  159.         "Please install GoldED before attempting to\n"
  160.         "install this client.                      \n"
  161.     ))
  162. )
  163.  
  164. (exit (quiet))
  165.  
  166. (welcome)
  167.